/**
 * 与归还相关的后端接口调用
 */
import instance from '@/utils/http'
import { addReturnApply,updateReturn,userGetReturnListPage,getReturnListPage } from '@/api/url'

 // 用户提交归还申请        
export const addReturnApplyAPI = (data) => {
    return instance({
        url: addReturnApply,
        method: 'post',
        data: data
    })
}

// 管理员审核归还申请          
export const updateReturnAPI = (data) => {
    return instance({
        url: updateReturn,
        method: 'put',
        data: data
    })
}

//申请人查看归还表      
export const userGetReturnListPageAPI = (data) => {
    return instance({
        url: userGetReturnListPage,
        method: 'get',
        data: data
    })
}
//管理员查看归还表
export const getReturnListPageAPI = (data) => {
    return instance({
        url: getReturnListPage,
        method: 'post',
        data: data
    })
}
